<script setup>
import HelloWorld from './components/HelloWorld.vue';
import { ref , onMounted,provide} from 'vue';
let dataKey=ref(0)
provide('data-key',dataKey)
const add=()=>{
    dataKey.value++
    console.log("childCom emit");
    
}
</script>
<template>
<HelloWorld @add="add"></HelloWorld>
</template>
<style scoped>


</style>